(function() {
	var platformWidth = Ti.Platform.displayCaps.platformWidth;
	var platformHeight = Ti.Platform.displayCaps.platformHeight;
	
	app.ui.createApplicationWindow = function(_args) {
		var tabGroup = Ti.UI.createTabGroup({
			id : 'balita',
		});
		
			
			// inquirer
			app.ui.inquirerTab = Ti.UI.createTab({
				id : 'inquirerTab',
				window : app.ui.createWindowInquirer(),
				title : 'Inquirer',
				// TODO: icon : $$.components.DEALER_ICO
			});
			tabGroup.addTab(app.ui.inquirerTab);
			
			// manila bulletin
			app.ui.manilaBulletinTab = Ti.UI.createTab({
				id : 'manilaBulletinTab',
				window : app.ui.createWindowManilaBulletin(),
				title : 'Manila Bulletin',
				// TODO: icon : $$.components.DEALER_ICO
			});
			tabGroup.addTab(app.ui.manilaBulletinTab);
			
			// abscbn
			app.ui.abscbnTab = Ti.UI.createTab({
				id : 'abscbnTab',
				window : app.ui.createWindowABSCBN(),
				title : 'ABS-CBN',
				// TODO: icon : $$.components.DEALER_ICO
			})
			tabGroup.addTab(app.ui.abscbnTab);
		
			// settings
			tabGroup.addTab(Ti.UI.createTab({
				id : 'settingsTab',
				window : app.ui.createWindowSettings(),
				title : 'Settings',
				// TODO: icon : $$.components.DEALER_ICO
			}));
			
		return tabGroup;
	}
	
	
})();

Ti.include(
	'/app/ui/windows/Inquirer.js',
	'/app/ui/windows/ManilaBulletin.js',
	'/app/ui/windows/ABSCBN.js',
	'/app/ui/windows/Settings.js',
	'/app/ui/windows/WebView.js'
);
